window: Don't draw titlebar background
authorMatthias Clasen <mclasen@redhat.com>
Mon, 18 Mar 2013 12:32:27 +0000 (08:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 18 Mar 2013 12:50:22 +0000 (08:50 -0400)
GtkHeaderBar can do its own drawing, no need to do this
in gtk_window_draw.

gtk/gtkwindow.c

index 843ef3c7d63e698c8453b84a270e0a54d64e5c48..d1455014f9eef722a8077b634b3ab12b07e4ddef 100644 (file)
@@ -8898,27 +8898,6 @@ gtk_window_draw (GtkWidget *widget,
       gtk_style_context_restore (context);
     }
 
-  if (priv->title_box != NULL && gtk_widget_get_visible (priv->title_box))
-    {
-      gtk_style_context_save (context);
-      gtk_style_context_add_class (context, "titlebar");
-      gtk_widget_get_allocation (priv->title_box, &allocation);
-
-      /* Why do these subtract ? */
-      gtk_render_background (context, cr,
-                            allocation.x - title_border.left,
-                            allocation.y - title_border.top,
-                            allocation.width + title_border.left + title_border.right,
-                            allocation.height + title_border.top + title_border.left);
-      gtk_render_frame (context, cr,
-                       allocation.x - title_border.left,
-                       allocation.y - title_border.top,
-                       allocation.width + title_border.left + title_border.right,
-                       allocation.height + title_border.top + title_border.left);
-
-      gtk_style_context_restore (context);
-    }
-
   if (GTK_WIDGET_CLASS (gtk_window_parent_class)->draw)
     ret = GTK_WIDGET_CLASS (gtk_window_parent_class)->draw (widget, cr);